package com.lg.happyfarmer.base;

import android.content.Context;
import android.support.multidex.MultiDex;
import android.support.multidex.MultiDexApplication;

import xtom.frame.XtomConfig;
import xtom.frame.util.XtomLogger;

public class EjnhApplication extends MultiDexApplication {
    private static final String TAG = "EjnhApplication";
    private static EjnhApplication application;

    public EjnhApplication() {

    }

    public static EjnhApplication getInstance() {
        return application;
    }

    public void onCreate() {
        application = this;
        XtomConfig.TIMEOUT_CONNECT_HTTP = 30000;
        XtomConfig.TRYTIMES_HTTP = 1;
        super.onCreate();
    }

    public void onLowMemory() {
        XtomLogger.i("EjnhApplication", "onLowMemory");
        super.onLowMemory();
    }

    public void onTerminate() {
        XtomLogger.i("EjnhApplication", "onTerminate");
        super.onTerminate();
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
}
